﻿@model BankCreditPortfolio.Models.HomeModels.TariffModel
@{
    ViewBag.Title = "Tariff";
}
<strong>@Model.Title</strong>
<p>
    Here you can find additional information about specified tariff.</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Styles/forms.css")" rel="stylesheet" type="text/css" />
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Tariff Information</legend>
        <div class="editor-label">
            @Html.LabelFor(m => m.Description)
        </div>
        <div class="editor-field-text">
            @Html.Encode(@Html.DisplayTextFor(m => m.Description))
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Percent)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Percent) %
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Currency)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Currency)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.RequireGuarantor)
        </div>
        @{
                    if (Model.RequireGuarantor)
                    {
                        <div class="editor-field-text">
                            Yes 
                        </div>
                    }
                    else
                    {
                        <div class="editor-field-text">
                            No
                        </div>
                    }
            } 
        <div class="editor-label">
            @Html.LabelFor(x => x.Years)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(x => x.Years)</div>
        <div class="editor-label">
            @Html.LabelFor(x => x.Months)</div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(x => x.Months)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Fine)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Fine) %
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.EarlyRepaimentFine)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.EarlyRepaimentFine) %
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Min)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Min)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Max)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Max)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.FirstPayment)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.FirstPayment) %
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.OtherPayments) 
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.OtherPayments) %
        </div>
        @{ if (Model.Documents.Count > 0)
           {
            <div class="editor-label">
                @Html.LabelFor(m => m.Documents)
            </div>
            <div class="editor-field-text">
                <ul>
                    @{ foreach (var item in Model.Documents)
                       {
                        <li>@item.Title</li>
                       } }
                </ul>
            </div>
           }
        }
    </fieldset>
}
